package com.axiyue.service.impl;

import javax.annotation.Resource;



import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.axiyue.dao.TestDao;
import com.axiyue.domain.Test1;
import com.axiyue.domain.Test2;
import com.axiyue.service.TestService;

/**
 * 
 * ============================================================================
 */

@Service
public class TestServiceImpl  implements TestService {

	@Resource
	private TestDao testDao;

	@Transactional
	@Override
	public void saveTest() {
		Test1 test1 = new Test1();
		test1.setId(1);
		test1.setName("test1");
		testDao.insertTest1(test1);
		Test2 test2 = new Test2();
		test2.setName("test1");
		testDao.insertTest2(test2);
	}

	
	

}